package com.example.Flyweight;

public class Circle implements Shape {
    int x, y, radius;
    String color;

    public Circle(String color) {
        this.color = color;
    }

    public void setParam(int x, int y, int radius) {
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println("color=" + color + "\t\tx="+ x + "\t\ty=" + y + "\t\tradius=" + radius);
    }
}
